<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>DataType class</title>
<link rel="stylesheet" href="../qunit/qunit.css" type="text/css" media="screen">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript" src="../qunit/qunit.js"></script>
<script type="text/javascript" src="../../javascript/global.js"></script>
<script type="text/javascript" src="../../javascript/util.js"></script>
<script type="text/javascript" src="../../javascript/applet.js"></script>
<script type="text/javascript" src="../../data_sample/mockup_data.js"></script>
<script type="text/javascript">
var isLoaded = false;
var timeout;
var friends = friend_data;
var data = real_all_data;

var jsons = [];

var isLoaded = {
	"applet":  false,
	"friend": true
};

function setMaxScore(maxScore){
    try {
        /* Do nothing */
    }catch(err){trace2(err);}
}

function isUp(){
trace2('isUp() start');
	if (!isLoaded.applet) {
		if (graph.checkUp()) {
			setTimeout("onLoad()", 1000);
		}
		else {
			setTimeout("isUp()", 1000);
		}
	}
trace2('isUp() end');
}

function onLoad(){
trace2('onLoad() start');
    isLoaded.applet = true;
    graph.draw();	
trace2('onLoad() end');
}

test("graph test", function(){
	try {
		isUp();
	}catch(err){trace2(err);}
});
</script>
</head>
<body>
    <h1 id="qunit-header">QUnit Test Suite</h1>
    <h2 id="qunit-banner"></h2>
    <div id="qunit-testrunner-toolbar"></div>
    <h2 id="qunit-userAgent"></h2>
    <ol id="qunit-tests"></ol>
    <div id="qunit-fixture">test markup</div>
	
	<div id="graph-area">
	    <div id="friendNet_container">
	        <!-- This version plays nicer with older browsers,
	        but requires JavaScript to be enabled.
	        http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html -->
	        <script type="text/javascript" src="http://www.java.com/js/deployJava.js">
	        </script>   
	        <script type="text/javascript">
	            /* <![CDATA[ */
	            try {
	                deployJava.runApplet(graph.attributes, graph.parameters, graph.version);
	            }catch(err){
	                trace2(err);
	            }
	            /* ]]> */
	        </script>
	        <noscript> <div>
	          <!--[if !IE]> -->
	          <object classid="java:friendNet.class" 
	                      type="application/x-java-applet"
	                      archive="friendNet.jar,physics.jar,core.jar,json.jar"
	                      width="600" height="500"
	                      standby="Loading Processing software..." >
	                
	            <param name="archive" value="friendNet.jar,physics.jar,core.jar,json.jar" />
	            
	            <param name="mayscript" value="true" />
	            <param name="scriptable" value="true" />
	            
	            <param name="image" value="loading.gif" />
	            <param name="boxmessage" value="Loading Processing software..." />
	            <param name="boxbgcolor" value="#FFFFFF" />
	            
	            <param name="test_string" value="outer" />
	          <!--<![endif]-->
	    
	            <!-- For more instructions on deployment, 
	             or to update the CAB file listed here, see:
	             http://java.sun.com/javase/6/webnotes/family-clsid.html
	             http://java.sun.com/javase/6/webnotes/install/jre/autodownload.html -->
	            <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
	                codebase="http://java.sun.com/update/1.6.0/jinstall-6u20-windows-i586.cab"
	                width="600" height="500"
	                standby="Loading Processing software..."  >
	              
	              <param name="code" value="friendNet" />
	              <param name="archive" value="friendNet.jar,physics.jar,core.jar,json.jar" />
	              
	              <param name="mayscript" value="true" />
	              <param name="scriptable" value="true" />
	              
	              <param name="image" value="loading.gif" />
	              <param name="boxmessage" value="Loading Processing software..." />
	              <param name="boxbgcolor" value="#FFFFFF" />
	              
	              <param name="test_string" value="inner" />
	              
	              <p>
	            <strong>
	              This browser does not have a Java Plug-in.
	              <br />
	              <a href="http://www.java.com/getjava" title="Download Java Plug-in">
	                Get the latest Java Plug-in here.
	              </a>
	            </strong>
	              </p>
	              
	            </object>
	            
	          <!--[if !IE]> -->
	          </object>
	          <!--<![endif]-->
	    
	        </div> </noscript>
	    </div>
	
	</div>

</body>
</html>